package com.xiaoyang.controller;

import com.xiaoyang.bean.TUser;
import com.xiaoyang.mapper.UserMapper;
import com.xiaoyang.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lichenyang
 * @create 2021-07-15 08:24
 */
@RestController
public class TUserController {

    @Autowired
    private TUserService tUserService;

    @RequestMapping("/getTUser")
    public TUser getTuser(@RequestParam("id") Long id){
        TUser user = tUserService.getTuser(id);
        return user;
    }

}
